import Router from 'koa-router'

// 创建房间,防止在内存的数据中
export const creat_house = async (ctx, next) => {
  console.log(next, 98989)
  ctx.body = {
    state: 401,
    data: 200
  }
  next()
}
export const router = (app) => {
  const router = new Router()
  router.get('/create_house', creat_house)
  app.use(router.routes()).use(router.allowedMethods())
}
